package com.unittec.zk.provider.work.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.unittec.zk.provider.root.EntityRoot;
import com.unittec.zk.sdk.root.domain.Paging;
import lombok.Data;

/**
    * 用车申请表
    */
@Data
@TableName(value = "car_application")
public class CarApplication extends EntityRoot implements Serializable {

    /**
     * 用车人
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 联系电话
     */
    @TableField(value = "connect_phone")
    private String connectPhone;

    /**
     * 用车人数
     */
    @TableField(value = "max_passengers")
    private Integer maxPassengers;

    /**
     * 用车开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 用车结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 目的地
     */
    @TableField(value = "destination")
    private String destination;

    /**
     * 用车事由
     */
    @TableField(value = "use_reason")
    private String useReason;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 审批状态（1审批中 2审批通过 3未通过）
     */
    @TableField(value = "application_state")
    private Integer applicationState = 1;

    /**
     * 车辆类型
     */
    @TableField(value = "truck_type")
    private String truckType;

    /**
     * 车牌号
     */
    @TableField(value = "truck_id")
    private String truckId;

    /**
     * 逻辑删除
     */
    @TableField(value = "del_flag")
    @TableLogic
    private Integer delFlag = 0;

    @TableField(value = "string1")
    private String string1;

    @TableField(value = "string2")
    private String string2;

    @TableField(value = "string3")
    private String string3;

    @TableField(value = "string4")
    private String string4;

    private static final long serialVersionUID = 1L;
}